import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/index.scss' //全局样式
//@ts-expect-error
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register' //svg
// import SvgIcon from '@/components/SvgIcons/index.vue'
import GlobalComponent from '@/components' //自定义插件将组件变为全局 注册项目的全局组件
import router from './router'
import App from './App.vue'

const app = createApp(App)
app.use(router)
console.log(import.meta.env) //开发环境配置
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(GlobalComponent)
// app.component('SvgIcon',SvgIcon)//自定义全局组件
app.mount('#app')
